Skip to content

Conversation

@lookyman
Copy link
Contributor

This has shot us in a foot a couple times, especially when yielding from an inner generator inside a generator.

@lookyman lookyman force-pushed the iterator-to-array-strict branch from ef63534 to 533f578 Compare April 12, 2018 13:10
@lookyman lookyman force-pushed the iterator-to-array-strict branch from 533f578 to ce5460e Compare April 12, 2018 13:22
@Majkl578
Copy link
Contributor

Doesn't really make sense to me. This would effectively kill ALL maps and first class collections. 👎 from me.

@lookyman
Copy link
Contributor Author

Hmm now that I think about it, this is actually trickier than I thought. You don't lose the items, but you do lose the keys, which might be important. Thank you @Majkl578!

@Majkl578
Copy link
Contributor

Majkl578 commented Apr 12, 2018

You definitely lose keys and you may lose items if there are duplicate keys (then last one wins). But generally this is similar i.e. to array_merge() or +. :)

@ondrejmirtes
Copy link
Member

Agreed, closing this 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants